<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" th:href="@{/css/main.css}" />
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
    <title>SpringMVC5+Thymeleaf示例</title>
</head>
<body>
<h2>Spring MVC5 + Thymeleaf对象属性格式化输出</h2>

student:
<table class="table  table-striped" >
    <tr >
        <td th:text="名字"></td>
        <td th:text="密码"></td>
        <td th:text="年龄"></td>
    </tr>
    <tr th:each="student:${students}">
        <td th:text="${student.name}"></td>
        <td th:text="${student.pwd}"></td>
        <td th:text="${student.age}"></td>
    </tr>
</table>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>
</html>

